package org.nepu.auth.auto;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @author kindear
 * RABC 模块
 */
@Slf4j
@AutoConfiguration
@EntityScan(
        basePackages = {
                "org.nepu.auth"
        }
)
@EnableJpaRepositories(
        basePackages = {
                "org.nepu.auth"
        }
)
@ComponentScan(basePackages = {
        "org.nepu.auth"
})
public class AuthAutoConfiguration implements EnvironmentAware {
    @Override
    public void setEnvironment(Environment environment) {
        // 此处注册全局环境
    }
}
